package com.codinghero.zqlb.weibo.servlet;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.codinghero.zqlb.weibo.sina.bo.WeiboBo;

public class PostWeiboServlet extends HttpServlet {

	private static final long serialVersionUID = 1L;

	private WeiboBo weiboBo = new WeiboBo();
	
	public void doGet(HttpServletRequest req, HttpServletResponse resp)
            throws ServletException, IOException {
		int seq = Integer.parseInt(req.getParameter("seq"));
		weiboBo.postHotMatchWeibo(seq);

    	resp.setCharacterEncoding("UTF-8");
		resp.getWriter().println("发布当天微博完成");
	}
}
